package com.zzyl.nursing.task;

import com.zzyl.nursing.service.IContractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @author cxb
 */
@Component
@Slf4j
public class UpdateContractStatusTask {
    @Autowired
    private IContractService contractService;


    public void updateStatusTask() {
        log.info("定时任务开始执行：{}", LocalDateTime.now());
        contractService.updateContractStatus();
    }
}